package com.exsun.gateway.jt809.data;

public class MsgHeader {
    public MsgHeader(){
    }
    public MsgHeader(int msgId){
        this.msgId = msgId;
    }
    // 消息ID
    protected int msgId;
    // 流水号
    protected int flowId;
    // 下级平台接入码
    protected long centerid;
    // 报文加密标识 0：不加密 1：加密
    protected int encryptFlag;
    // 加密KEY
    protected int encryptKey;

    // ////// =====消息包封装项

    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }

    public int getFlowId() {
        return flowId;
    }

    public void setFlowId(int flowId) {
        this.flowId = flowId;
    }

    public long getCenterid() {
        return centerid;
    }

    public void setCenterid(long centerid) {
        this.centerid = centerid;
    }

    public int getEncryptFlag() {
        return encryptFlag;
    }

    public void setEncryptFlag(int encryptFlag) {
        this.encryptFlag = encryptFlag;
    }

    public int getEncryptKey() {
        return encryptKey;
    }

    public void setEncryptKey(int encryptKey) {
        this.encryptKey = encryptKey;
    }

    @Override
    public String toString() {
        return "MsgHeader [msgId=" + msgId + " , centerid=" + centerid + ", flowId=" + flowId;
    }

}
